//
// Created by antler on 2018/12/11.
//

#ifndef LUA_STRINGUTILS_H
#define LUA_STRINGUTILS_H

#include <string>
#include <vector>

namespace StringUtils {
    int stoi(const std::string &s, int def_value);

    void split(const std::string &s, const std::string &sep, std::vector<std::string> &vec);

    bool startWith(const std::string &s, const std::string &prefix);

    bool endWith(const std::string &s, const std::string &suffix);

    std::string removeExtension(const std::string &s);
};

#endif //LUA_STRINGUTILS_H
